<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>commentbox</title>
    <script src="../build/react.js"></script>
    <script src="../build/react-dom.js"></script>
    <script src="https://unpkg.com/babel-core@5.8.38/browser.min.js"></script>
</head>
<body>
<div id="example"></div>
<script type='text/babel'>
var CommentList = React.createClass({
    render: function() {
        return (
            <div className='commentlist'>
                CommentList
            </div>
        )
    }
});
var CommentForm = React.createClass({
    render: function() {
        return (
            <div className='commentForm'>
                CommentForm
            </div>
        )
    }
});
var CommentBox = React.createClass({
    render: function() {
        return (
            <div className='commentBox'>
                <CommentList />
                <CommentForm />
                <span>{this.props.name}</span>
            </div>
        )
    }
});
ReactDOM.render(
    <CommentBox name="hu" />,
    document.getElementById('example')
)
</script>
</body>
</html>
